<?php require('includes/header.php'); ?>
<?php require('includes/nav.php'); ?>

	<h2>Uploaded files:</h2>
	
	(Hover over image to view, or click)
	
	<?php
		if(isset($files))
		{
			foreach($files as $f_key => $f_vals)
			{
				if($f_vals != '.' && $f_vals != '..')
					echo "<div class='hide-image'><a href='/runningrecords/uploads/" . $_SESSION['username'] . "/$f_vals'>$f_vals</a><br/>";
					echo "<div class='hidden'><img src='/runningrecords/uploads/" . $_SESSION['username'] . "/$f_vals' alt='$f_vals' /></div>";
					echo "</div>";
			}
		}
		else
			echo "<h2>You don't have any files!  Upload one and share your races with everyong.</h2>";
	?>

<?php require('includes/footer.php'); ?>